//
//  HealthDetail.m
//  LoveHealth
//
//  Created by 陈永坤 on 14-9-20.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "HealthListAndDetail.h"

@implementation HealthListAndDetail
- (void)dealloc
{
    self.title = nil;
    self.author = nil;
    self.time = nil;
    self.showImage = nil;
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [super encodeWithCoder:aCoder];
    [aCoder encodeInteger:self.count forKey:@"count"];
    [aCoder encodeInteger:self.rcount forKey:@"rcount"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeInteger:self.fcount forKey:@"fcount"];
    [aCoder encodeObject:self.author forKey:@"author"];
    [aCoder encodeObject:self.time forKey:@"time"];
    [aCoder encodeObject:self.showImage forKey:@"showImage"];
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        self.count = [aDecoder decodeIntegerForKey:@"count"];
        self.rcount = [aDecoder decodeIntegerForKey:@"rcount"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.fcount = [aDecoder decodeIntegerForKey:@"fcount"];
        self.author = [aDecoder decodeObjectForKey:@"author"];
        self.time = [aDecoder decodeObjectForKey:@"time"];
        self.showImage = [aDecoder decodeObjectForKey:@"showImage"];
    }
    return self;
}
@end
